.PHONY: all clean

CC		= gcc
SRC		= ${wildcard *.c}
BIN		= ${patsubst %.c, %, $(SRC)}
CFLAGS	= -g -Wall
RM		= rm -rf
PRJ_PATH= $(shell pwd)

all:$(BIN)

$(BIN):%:%.c
	@echo [CC] $@
	@$(CC) -o $@ $^ $(CFALGS) -D_PRJ_PATH_='"$(PRJ_PATH)"'

clean:
	$(RM) a.out $(BIN) .*.*.sw? *.sd

test:
	@echo $(PRJ_PATH)

.PHONY: clean test
